<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="framework.bean.User"%>
<%@ page import="java.util.List"%>
<%@ include file="securite.jsp" %>
<%
	List<User> cli = (List<User>) session.getAttribute("cli");
	int id_film = Integer.parseInt((String)session.getAttribute("id_film"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Reservation de film</title>
</head>
<body>

	<h1>Reservation de film</h1>
	<form method="post">
	<input type="hidden" name="action" value="reservfilm"/>
	<input type="hidden" name="id_film" value="<%=id_film%>"/>
	
		<label for="id_cli">Selectionner un client :</label> 
		<select	name="id_cli" id="id_cli">
			<%
				for (User u : cli) {
			%>
			<option value="<%=u.getId()%>"><%=u.getNom()%>
				<%=u.getPrenom()%></option>
			<%
				}
			%>



		</select> <input type="submit" value="Valider" />
	</form>
</body>
</html>